#!/bin/bash
#2018年6月4日22:26:43
#auto install apache web
#by author www.jfedu.net
########################
yum install -y wget gcc gcc-c++ tar make  zlib zlib-devel
wget -c https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.32.tar.gz
tar -xzf httpd-2.4.32.tar.gz
cd httpd-2.4.32
./configure --prefix=/usr/local/apache2/ --enable-so --enable-rewrite --enable-ssl --enable-proxy
make
make install
/usr/local/apache2/bin/apachectl start
ps -ef|grep httpd
netstat -tnlp|grep 80
setenforce 0
systemctl stop firewalld.service
